package cn.edu.nju.askme.dao;

import java.util.List;

import cn.edu.nju.askme.model.User;

public interface IUserDAO {

	void save(User transientInstance);

	void delete(User persistentInstance);

	User findById(java.lang.Integer id);

	List<User> findByExample(User instance);

	List findByProperty(String propertyName, Object value);

	List<User> findByEmail(Object email);

	List<User> findByUsername(Object username);

	List<User> findByPassword(Object password);

	List findAll();

	User merge(User detachedInstance);

	void attachDirty(User instance);

	void attachClean(User instance);

}